-- Written for HyperPro by Phil Wyman of Selective Memory
-- Modified by Jim Anders of Kaidan 8-May-1988
global LongName,LongPath,ShortPath,totalPath,stacks
set userLevel to 5
put the visible of the msg into visiBox
answer "OK to put a button on your Home Card ?" with "Cancel" or "Go Ahead"
if it is "Cancel" then exit mouseUp
set cursor to 4
if the short name of this stack is not "Open Me First" then
get the length of the short name of this stack
put it into stackLength
else put 13 into stackLength
put the long name of this stack into LongName
put the value of word two of longName into ShortPath
repeat stackLength
put empty into last char of ShortPath
end repeat
put shortPath & ":" into LongPath
put shortPath & return & LongPath into totalPath
set lockscreen to true
choose button tool
click at the loc of card button "Solutions"
doMenu "Copy Button"
go home
go to card "Stacks"
put totalPath & return before field "paths"
put field "paths" into stacks -- reinitializing the global
go home
set lockScreen to false
doMenu "Paste Button"
put "Don't click. Move mouse & button to position. Then click." into msg
repeat until the mouseClick
set the loc of card button "Solutions" to the mouseLoc
end repeat
choose browse tool
put empty
set the visible of the msg to visiBox
set the userLevel to 2
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=0 top=0 right=158 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Go on...
----- HyperTalk script -----
on mouseUp
visual effect barn door open
go to card "topics"
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=0 top=155 right=256 bottom=30
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Go on...
----- HyperTalk script -----
on mouseUp
visual effect barn door open
go to card "topics"
end mouseUp
-- part contents for card part 13
----- text -----
By clicking on the installer button, on the left, a new "Solutions" button (like the one shown on the right) will be placed in your Home stack and linked to this stack.